<template>
  <div class="mobile">
    <div class="text">mobile</div>
    <div class="content">
      <div class="center">
        <mt-field label="账号" v-model="username"></mt-field>
        <mt-field label="密码" type="password" v-model="password"></mt-field>
      </div>
      <mt-button type="primary" @click="login">登录</mt-button>
    </div>
  </div>
</template>

<script>
  // @ is an alias to /src
  import HelloWorld from '@/components/HelloWorld.vue'
  export default {
    name: 'home',
    data() {
      return {
        username: "",
        password: "",
      }
    },
    methods: {
      login(){
        this.$router.push({ path: '/admin', query: { age: 18 } })
      }
    }
  }
</script>
<style scoped lang="less">
  .mobile{
    width: 100%;
    .content{
      margin-top: 100px;
      .center{
        margin-bottom: 23px;
      }
    }
  }
</style>

